Optimal. Leaf size=561 \[ -\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\sqrt [4]{g}+\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt [4]{-f}}{\sqrt {x}}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\sqrt [4]{g}+\frac {\sqrt [4]{-f}}{\sqrt {x}}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {p \text {Li}_2\left (\frac {\sqrt {-\sqrt {-f}} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {p \text {Li}_2\left (\frac {\sqrt [4]{-f} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {p \text {Li}_2\left (\frac {\sqrt {-\sqrt {-f}} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {p \text {Li}_2\left (\frac {\sqrt [4]{-f} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.84, antiderivative size = 561, normalized size of antiderivative = 1.00, number of steps
used = 20, number of rules used = 10, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.417, Rules used = {2522, 2525,
269, 281, 211, 2463, 266, 2441, 2440, 2438} \begin {gather*} -\frac {p \text {PolyLog}\left (2,\frac {\sqrt {-\sqrt {-f}} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {p \text {PolyLog}\left (2,\frac {\sqrt [4]{-f} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {p \text {PolyLog}\left (2,\frac {\sqrt {-\sqrt {-f}} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {p \text {PolyLog}\left (2,\frac {\sqrt [4]{-f} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}+\sqrt [4]{g}\right )}{d \sqrt {-\sqrt {-f}}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt [4]{-f}}{\sqrt {x}}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\frac {\sqrt [4]{-f}}{\sqrt {x}}+\sqrt [4]{g}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 266
Rule 269
Rule 281
Rule 2438
Rule 2440
Rule 2441
Rule 2463
Rule 2522
Rule 2525
Rubi steps
\begin {align*} \int \frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right )}{f+g x^2} \, dx &=2 \text {Subst}\left (\int \frac {x \log \left (c \left (d+\frac {e}{x}\right )^p\right )}{f+g x^4} \, dx,x,\sqrt {x}\right )\\ &=-\left (2 \text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{\left (f+\frac {g}{x^4}\right ) x^3} \, dx,x,\frac {1}{\sqrt {x}}\right )\right )\\ &=-\left (2 \text {Subst}\left (\int \left (-\frac {f x \log \left (c (d+e x)^p\right )}{2 \sqrt {-f} \sqrt {g} \left (\sqrt {-f} \sqrt {g}-f x^2\right )}-\frac {f x \log \left (c (d+e x)^p\right )}{2 \sqrt {-f} \sqrt {g} \left (\sqrt {-f} \sqrt {g}+f x^2\right )}\right ) \, dx,x,\frac {1}{\sqrt {x}}\right )\right )\\ &=-\frac {\sqrt {-f} \text {Subst}\left (\int \frac {x \log \left (c (d+e x)^p\right )}{\sqrt {-f} \sqrt {g}-f x^2} \, dx,x,\frac {1}{\sqrt {x}}\right )}{\sqrt {g}}-\frac {\sqrt {-f} \text {Subst}\left (\int \frac {x \log \left (c (d+e x)^p\right )}{\sqrt {-f} \sqrt {g}+f x^2} \, dx,x,\frac {1}{\sqrt {x}}\right )}{\sqrt {g}}\\ &=-\frac {\sqrt {-f} \text {Subst}\left (\int \left (\frac {\sqrt {-\sqrt {-f}} \log \left (c (d+e x)^p\right )}{2 f \left (\sqrt [4]{g}-\sqrt {-\sqrt {-f}} x\right )}-\frac {\sqrt {-\sqrt {-f}} \log \left (c (d+e x)^p\right )}{2 f \left (\sqrt [4]{g}+\sqrt {-\sqrt {-f}} x\right )}\right ) \, dx,x,\frac {1}{\sqrt {x}}\right )}{\sqrt {g}}-\frac {\sqrt {-f} \text {Subst}\left (\int \left (-\frac {\sqrt [4]{-f} \log \left (c (d+e x)^p\right )}{2 f \left (\sqrt [4]{g}-\sqrt [4]{-f} x\right )}+\frac {\sqrt [4]{-f} \log \left (c (d+e x)^p\right )}{2 f \left (\sqrt [4]{g}+\sqrt [4]{-f} x\right )}\right ) \, dx,x,\frac {1}{\sqrt {x}}\right )}{\sqrt {g}}\\ &=-\frac {\text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{\sqrt [4]{g}-\sqrt {-\sqrt {-f}} x} \, dx,x,\frac {1}{\sqrt {x}}\right )}{2 \sqrt {-\sqrt {-f}} \sqrt {g}}+\frac {\text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{\sqrt [4]{g}+\sqrt {-\sqrt {-f}} x} \, dx,x,\frac {1}{\sqrt {x}}\right )}{2 \sqrt {-\sqrt {-f}} \sqrt {g}}-\frac {\text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{\sqrt [4]{g}-\sqrt [4]{-f} x} \, dx,x,\frac {1}{\sqrt {x}}\right )}{2 \sqrt [4]{-f} \sqrt {g}}+\frac {\text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{\sqrt [4]{g}+\sqrt [4]{-f} x} \, dx,x,\frac {1}{\sqrt {x}}\right )}{2 \sqrt [4]{-f} \sqrt {g}}\\ &=-\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\sqrt [4]{g}+\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt [4]{-f}}{\sqrt {x}}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\sqrt [4]{g}+\frac {\sqrt [4]{-f}}{\sqrt {x}}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {(e p) \text {Subst}\left (\int \frac {\log \left (\frac {e \left (\sqrt [4]{g}-\sqrt {-\sqrt {-f}} x\right )}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{d+e x} \, dx,x,\frac {1}{\sqrt {x}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {(e p) \text {Subst}\left (\int \frac {\log \left (\frac {e \left (\sqrt [4]{g}+\sqrt {-\sqrt {-f}} x\right )}{-d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{d+e x} \, dx,x,\frac {1}{\sqrt {x}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {(e p) \text {Subst}\left (\int \frac {\log \left (\frac {e \left (\sqrt [4]{g}-\sqrt [4]{-f} x\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{d+e x} \, dx,x,\frac {1}{\sqrt {x}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {(e p) \text {Subst}\left (\int \frac {\log \left (\frac {e \left (\sqrt [4]{g}+\sqrt [4]{-f} x\right )}{-d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{d+e x} \, dx,x,\frac {1}{\sqrt {x}}\right )}{2 \sqrt {-f} \sqrt {g}}\\ &=-\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\sqrt [4]{g}+\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt [4]{-f}}{\sqrt {x}}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\sqrt [4]{g}+\frac {\sqrt [4]{-f}}{\sqrt {x}}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {p \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {-\sqrt {-f}} x}{-d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{x} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {p \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {-\sqrt {-f}} x}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{x} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {p \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt [4]{-f} x}{-d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{x} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {p \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt [4]{-f} x}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{x} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{2 \sqrt {-f} \sqrt {g}}\\ &=-\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\sqrt [4]{g}+\frac {\sqrt {-\sqrt {-f}}}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\frac {e \left (\sqrt [4]{g}-\frac {\sqrt [4]{-f}}{\sqrt {x}}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\frac {e \left (\sqrt [4]{g}+\frac {\sqrt [4]{-f}}{\sqrt {x}}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {p \text {Li}_2\left (\frac {\sqrt {-\sqrt {-f}} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {p \text {Li}_2\left (\frac {\sqrt [4]{-f} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}-\frac {p \text {Li}_2\left (\frac {\sqrt {-\sqrt {-f}} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt {-\sqrt {-f}}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}+\frac {p \text {Li}_2\left (\frac {\sqrt [4]{-f} \left (d+\frac {e}{\sqrt {x}}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )}{2 \sqrt {-f} \sqrt {g}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.39, size = 912, normalized size = 1.63 \begin {gather*} \frac {\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-\sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right )-p \log \left (-\frac {\sqrt [4]{g} \left (e+d \sqrt {x}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right ) \log \left (-\sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right )-\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (-i \sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right )+p \log \left (\frac {i \sqrt [4]{g} \left (e+d \sqrt {x}\right )}{d \sqrt [4]{-f}+i e \sqrt [4]{g}}\right ) \log \left (-i \sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right )-\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (i \sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right )+p \log \left (\frac {\sqrt [4]{g} \left (e+d \sqrt {x}\right )}{i d \sqrt [4]{-f}+e \sqrt [4]{g}}\right ) \log \left (i \sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right )+\log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^p\right ) \log \left (\sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right )-p \log \left (\frac {\sqrt [4]{g} \left (e+d \sqrt {x}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right ) \log \left (\sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right )-p \log \left (i \sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right ) \log \left (-\frac {i \sqrt [4]{g} \sqrt {x}}{\sqrt [4]{-f}}\right )-p \log \left (-i \sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right ) \log \left (\frac {i \sqrt [4]{g} \sqrt {x}}{\sqrt [4]{-f}}\right )+p \log \left (\sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right ) \log \left (\frac {\sqrt [4]{g} \sqrt {x}}{\sqrt [4]{-f}}\right )+p \log \left (-\sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right ) \log \left (\frac {f \sqrt [4]{g} \sqrt {x}}{(-f)^{5/4}}\right )-p \text {Li}_2\left (\frac {d \left (\sqrt [4]{-f}-\sqrt [4]{g} \sqrt {x}\right )}{d \sqrt [4]{-f}+e \sqrt [4]{g}}\right )+p \text {Li}_2\left (\frac {d \left (\sqrt [4]{-f}-i \sqrt [4]{g} \sqrt {x}\right )}{d \sqrt [4]{-f}+i e \sqrt [4]{g}}\right )+p \text {Li}_2\left (\frac {d \left (\sqrt [4]{-f}+i \sqrt [4]{g} \sqrt {x}\right )}{d \sqrt [4]{-f}-i e \sqrt [4]{g}}\right )-p \text {Li}_2\left (\frac {d \left (\sqrt [4]{-f}+\sqrt [4]{g} \sqrt {x}\right )}{d \sqrt [4]{-f}-e \sqrt [4]{g}}\right )-p \text {Li}_2\left (1-\frac {i \sqrt [4]{g} \sqrt {x}}{\sqrt [4]{-f}}\right )-p \text {Li}_2\left (1+\frac {i \sqrt [4]{g} \sqrt {x}}{\sqrt [4]{-f}}\right )+p \text {Li}_2\left (1+\frac {\sqrt [4]{g} \sqrt {x}}{\sqrt [4]{-f}}\right )+p \text {Li}_2\left (1+\frac {f \sqrt [4]{g} \sqrt {x}}{(-f)^{5/4}}\right )}{2 \sqrt {-f} \sqrt {g}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.25, size = 0, normalized size = 0.00 \[\int \frac {\ln \left (c \left (d +\frac {e}{\sqrt {x}}\right )^{p}\right )}{g \,x^{2}+f}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\ln \left (c\,{\left (d+\frac {e}{\sqrt {x}}\right )}^p\right )}{g\,x^2+f} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________